{[include file="../../../../library/view/templates/header.tpl"]}
<script src="{[$host]}/js/goods/goodsList.js" type="text/javascript" language="javascript"></script>
<script src="{[$host]}/js/common/categoryTag.js" type="text/javascript"></script>
<script src="{[$host]}/js/goods/goodsPriceRecording.js" type="text/javascript" language="javascript"></script>
{[include file="../../../../library/view/templates/common.tpl"]}
<div id="BMainContents">
        <div class="BSpace10px">
        </div>
        <div id="BMainTitleH1">
            {[$goods_EC0001_H1]}</div><div id="BError">{[include file="../../../../library/view/templates/tag/error.tpl"]}</div>
        <div class="BSpace10px">
            <input type="hidden" id="hidPageModel" name="hidPageModel" value="{[$strPageModel]}">
        </div>
        <table width="160" border="0" cellpadding="0" cellspacing="0" style="margin-left: 15px;">
            <tr>
                <td width="65%" align="center" class="title" style="border: 1px solid #dfdfdf; background-color: #F9F9F9;
                    padding: 3px 8px;">
                    {[$goods_EC0001_H2]}
                </td>
                <td width="35%" align="center" style="border: 1px solid #dfdfdf; background-color: #F9F9F9;
                    padding: 3px 8px;">
                     {[$intGoodsNum]}{[$goods_EC0001_Num]}
                </td>
            </tr>
        </table>
        <div class="BSpace10px">
        </div>
<!--        <div class="BSpace10px" align = "center">-->
<!--        <input class = "BGrayBtn" type = "button" name = "addGoods" id = "addGoods"  value = "{[$goods_EC0001_addGoods]}" onclick = "goods_add()"/>-->
<!--        </div>-->

            <form id="goodsListFrom" name="goodsListFrom" method="post" action="">
            <input type="hidden" id="hidCount" name="hidCount" value="{[$intGoodsCount]}">
            <input type="hidden" id="hidTaxWay" name="hidTaxWay" value="{[$strTaxWay]}">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <div class="BFenceTopLeft">
                        </div>
                        <div class="BFenceTopRight">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="BFenceSideLine">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="BGrayLineTable">
                                <tr>
                                    <td width="20%" class="BListLabel">
                                        {[$goods_EC0001_GoodsCode]}
                                    </td>
                                    <td>
                                        <input type="text" id="txtGoodsCode" name="txtGoodsCode" size="30" value="{[$arrCondition.GoodsCode]}"/>
                                    </td>
                                    <td rowspan="10">
                                        <div class="BTextAlignCenter">
                                            <input type="button" id="EC0001OT01" name="EC0001OT01"
                                             value="{[$goods_EC0001_SearCondition]}" onclick="goods_dataSearch()" class="BGrayBtn" />
                                             <div class="BSpace10px"></div>
                                            <input type="button" id="EC0001OT01" name="EC0001OT02"
                                             value="{[$goods_EC0001_Clear]}" class="BGrayBtn" onclick="goods_reset()" />
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%" class="BListLabel">
                                        {[$goods_EC0001_GoodsName]}
                                    </td>
                                    <td>
                                        <input type="text" id="txtGoodsName" name="txtGoodsName" size="30" maxlength="128" value="{[$arrCondition.GoodsName]}"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%" class="BListLabel">
                                        {[$goods_EC0001_SalesPrice]}
                                    </td>
                                    <td>
                                        <input type="text" id="txtPriceFrom" name="txtPriceFrom" size="20"
                                          value="{[$arrCondition.PriceFrom]}" class="BTextAlignRight" />
                                        &nbsp;{[$goods_EC0001_Yen]}&nbsp;{[$goods_EC0001_Link]}&nbsp;
                                        <input type="text" id="txtPriceTo" name="txtPriceTo" size="20"
                                          value="{[$arrCondition.PriceTo]}" class="BTextAlignRight" />
                                        &nbsp;{[$goods_EC0001_Yen]}
                                    </td>
                                </tr>
                                <tr>
                                    <td class="BListLabel">
                                        {[$goods_EC0001_Class]}
                                    </td>
                                    <td>
                                        {[include file="../../../common/views/templates/categoryTag.tpl"]}
                                    </td>
                                </tr>
                                
                                <tr>
                                    <td class="BListLabel">
                                        {[$goods_EC0001_InNum]}
                                    </td>
                                    <td>
                                        <input type="radio" id="rdoNumAll" name="rdoNum" {[if $strNumFlg == "0" || $strNumFlg == ""]} checked {[/if]} onclick="goods_setTextType('0')"/>&nbsp;
                                        <label for="rdoNumAll">{[$goods_EC0001_GetAll]}</label>&nbsp;&nbsp;
                                        <input type="radio" id="rdoNumLeft" name="rdoNum" {[if $strNumFlg == "1"]} checked {[/if]} onclick="goods_setTextType('1')"/>&nbsp;
                                        <label for="rdoNumLeft">{[$goods_EC0001_GetLeft]}</label>&nbsp;&nbsp;
                                        <input type="radio" id="rdoNumStock" name="rdoNum" {[if $strNumFlg == "2"]} checked {[/if]} onclick="goods_setTextType('2')"/>&nbsp;
                                        <label for="rdoNumStock">{[$goods_EC0001_GetExcut]}</label>&nbsp;&nbsp;
                                        <input type="radio" id="rdoNumDefined" name="rdoNum" {[if $strNumFlg == "3"]} checked {[/if]} onclick="goods_setTextType('3')"/>&nbsp;
                                        <label for="rdoNumDefined">{[$goods_EC0001_GetSet]}</label>
                                        <input type="text" id="txtNumFrom" name="txtNumFrom" size="8" class="BTextAlignRight" value="{[$arrCondition.StockNumFrom]}"{[if $strNumFlg != "3"]} disabled {[/if]}/>
                                        &nbsp;{[$goods_EC0001_Link]}&nbsp;
                                        <input type="text" id="txtNumTo" name="txtNumTo" size="8" class="BTextAlignRight"  value="{[$arrCondition.StockNumTo]}" {[if $strNumFlg != "3"]} disabled {[/if]}/>
                                    </td>
                                </tr>
                                
                            </table>
                       </td>
                </tr>
                <tr>
                    <td>
                        <div class="BFenceBottomLeft">
                        </div>
                        <div class="BFenceBottomRight">
                        </div>
                    </td>
                </tr>
            </table>
            <div  class="BSpace10px">
                <input type="hidden" id="hidNumFg" name="hidNumFg"/>
            </div>
            </form>
            <div id="tb_" class="BTabFenceTop">
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td class="BFenceSideLine">
                        
                        
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td  align="right" class="BPasingArea">
                                    <div id="orderHead">
                                        {[include file="../../../../library/view/templates/tag/order.tpl"]}
                                    </div>
                                    <div id="pageHead">
                                        {[include file="../../../../library/view/templates/tag/pager.tpl"]}
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="BListTable" id="tblDataTable">
                            <tr id="trHeader_orderHead">
                                <td width="3%" class="BListTableHeader">
                                    {[$goods_EC0001_No]}
                                </td>
                                <td width="7%" class="BListTableHeader">
                                    {[$goods_EC0001_Image]}
                                </td>
                                <td width="9%" id="GOODS_CODE" class="BListLabel" onclick="initOrder('orderHead')">
                                    {[$goods_EC0001_GoodsCode]}
                                    {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                                </td>
                                <td width="11%" id="GOODS_NAME" class="BListLabel" onclick="initOrder('orderHead')">
                                    {[$goods_EC0001_GoodsName]}
                                    {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                                </td>
                                <td width="13%" class="BListTableHeader">
                                    {[$goods_EC0001_Variation]}
                                </td>
                                <td width="7%" id = "SALES_PRICE" class="BListLabel" onclick="initOrder('orderHead')">
                                    {[$goods_EC0001_SalePrice]}
                                    {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                                </td>
                                <td width="8%" id = "STOCK_NUM" class="BListLabel" onclick="initOrder('orderHead')">
                                    {[$goods_EC0001_InNum]}
                                    {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                                </td>
                                <td width="8%" id = "SUPPLIERNUM" class="BListLabel" onclick="initOrder('orderHead')">
                                    {[$goods_EC0001_SupplierNum]}
                                    {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                                </td>
                                <td width="18%" class="BListTableHeader">
                                    {[$goods_EC0001_SupplierName]}
                                </td>
                            </tr>
                          {[foreach from = $arrGoods key = key item = msg]}
                            <tr>
                                <td width="3%" class="BListTableNonmarginGray">
                                    {[$fromRecord+$key]}
                                </td>
                                <td width="7%" class="BListTableNonmarginGray">
                                    <img />
                                </td>
                                <td width="9%" class="BListTableNonmarginGray">
                                    <a  href = "{[$host]}index.php/goods/goodsDetails/index/goodsNo/{[$msg.GOODS_NO]}">{[$msg.GOODS_CODE]}</a>
                                </td>
                                <td width="11%" class="BListTableNonmarginGray" >
                                <a  href = "{[$host]}index.php/goods/goodsDetails/index/goodsNo/{[$msg.GOODS_NO]}">{[$msg.GOODS_NAME]}</a>
                                    
                                </td>
                                <td width="13%" class="BListTableNonmarginGray">
                                <span title = "{[$msg.VARIATION]}">
                                    {[$msg.SIMVARIATION]}
                                    </span>
                                </td>
                                <td width="7%" class="BListTableNonmarginGray">
                                    {[$msg.SALES_PRICE]}
                                </td>
                                <td width="8%" class="BListTableNonmarginGray">
                                    {[$msg.STOCK_NUM]}
                                </td>
                                <td width="8%" class="BListTableNonmarginGray">
                                    {[$msg.SUPPLIERNUM]}
                                </td>
                                <td width="18%" class="BListTableNonmarginGray">
                                <span title = "{[$msg.NAME_GROUP]}">
                                    {[$msg.SIMNAME_GROUP]}
                                     </span>
                                </td>
                            </tr>
                          {[/foreach]}
                         </table>
                        
            <div class="BSpace20px">
            </div>
            <div class="BSpace20px">
            </div>
            </td>
            </tr>
            </table>
        </div>
{[include file="../../../../library/view/templates/footer.tpl"]}